from django.conf.urls.defaults import *
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '%s/static' % settings.WEB_ROOT}),
    (r'^admin/', include(admin.site.urls)),
    (r'^v2/', include('crmv2.urls')),
    (r'^', include('crm.urls')),
    (r'^medias/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
    (r'^fck/', include('ckeditor.ckeditor.urls')),
)
